const model = {
  key: "weixinpay",
  name: "微信支付",
  group: ["pay", "wechat"],

  libs: [
    {
      key: "weixinPayApi",
      name: "weixinPayApi",
      href: "https://github.com/befinal/node-tenpay",
    },
  ],
  config: {
    appid: {
      key: "appid",
      value: "",
      description: "公众号ID/小程序ID",
      remark: "",
      required: true,
    },
    mchid: {
      key: "mchid",
      value: "",
      description: "微信商户号",
      remark: "",
      required: true,
    },
    partnerKey: {
      key: "partnerKey",
      value: "",
      description: "微信支付安全密钥",
      remark: "",
      required: true,
    },
    pfx: {
      key: "pfx",
      value: "",
      description: "支付证书",
      remark: "",
      required: true,
    },
  },
  template: [
    {
      key: "base",
      name: "基础",
      input: {},
      output: {},
      url: "/api/libs/weixinpay/base.js",
    },
  ],
};

module.exports = model;
